﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Couple.Views.TabItemBookingView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation">

    <Grid Margin="5,5,5,5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <GroupBox x:Name="GroupBoxBooking" IsEnabled="True" Header="Booking" Grid.RowSpan="1" Margin="5,5,5,10">
    
            <StackPanel x:Name="StackPanelBooking" Grid.Row="0" Orientation="Vertical" HorizontalAlignment="Left">

                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Label Content="Typ av ceremoni:" Grid.Column="0" />

                    <ListView x:Name="rbListCeremonyTypes" Grid.Column="1" Margin="5,0,0,0"
                      Style="{DynamicResource HorizontalRadioButtonList}" 
                      SelectedItem="{Binding CeremonyType}" 
                      SelectionChanged="rbListCeremonyTypes_SelectionChanged"/>
                
                </Grid>

                <TextBlock TextWrapping="Wrap" Margin="3,10,0,0" Height="25" 
                           HorizontalAlignment="Left" VerticalAlignment="Center">
                    <Run Text="Välj en tid genom att klicka på aktuellt datum nedan. " />
                </TextBlock>
            
            </StackPanel>
        </GroupBox>
    
        <ContentControl x:Name="BookingContent" Grid.Row="1" Margin="0,10,0,0"
                        Regions:RegionManager.RegionName="BookingRegion"  
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsEnabled="True" />
        


    </Grid>

</UserControl>
